<?php

namespace App\Models\Import;

use Illuminate\Database\Eloquent\Model;

class BatchImportVchanHistory extends Model
{
    // use SoftDeletes;
    protected $connection = 'xiaole_assets';
    public $table = 'batch_import_vchan_historys';

    protected $dates = ['deleted_at'];

    public $fillable = [
        'batch_no',
        'task_no',
        'done_count',
        'file_url',
        'success_count',
        'error_count',
        'count',
        'consuming_time',
        'used_memory',
        'user_id',
        'content',
        'created_at',
        'updated_at',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'batch_no'   => 'string',
        'task_no' => 'string',
        'done_count' => 'integer',
        'file_url' => 'string',
        'success_count' => 'integer',
        'error_count' => 'integer',
        'count' => 'integer',
        'consuming_time' => 'float',
        'used_memory' => 'float',
        'user_id' => 'integer',
    ];
}
